﻿
Partial Class Controls_MyDetailsControl1
    Inherits System.Web.UI.UserControl
    Dim u As MembershipUser

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub ObjectDataSource1_Selecting(sender As Object, e As System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs) Handles ObjectDataSource1.Selecting

        Try
            u = Membership.GetUser(HttpContext.Current.User.Identity.Name)
            e.InputParameters("UserId") = u.ProviderUserKey

        Catch ex As Exception
            Throw ex
        End Try
    End Sub

    Protected Sub FormView2_ItemCommand(sender As Object, e As System.Web.UI.WebControls.FormViewCommandEventArgs) Handles FormView2.ItemCommand
        If e.CommandName = "Home" Then
            Response.Redirect("~/private/")
        End If
    End Sub
End Class
